<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
	    <!-- Loading Bootstrap -->
	    <link href="./public/admin/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
	    <!-- Loading Flat UI -->
	    <link href="./public/admin/Flat/dist/css/flat-ui.css" rel="stylesheet">
	    <link href="./public/admin/Flat/docs/assets/css/demo.css" rel="stylesheet">
	    <link rel="shortcut icon" href="./public/admin/Flat/img/favicon.ico">
	    <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
	    <!--[if lt IE 9]>
	      <script src="dist/js/vendor/html5shiv.js"></script>
	      <script src="dist/js/vendor/respond.min.js"></script>
	    <![endif]-->
	</head>
	<body>
		<form action="" method="post">
		
		<table class="table table-hover">
			<tr class="active">
			  <th width="100">货品id</th>
			  <th width="150">颜色</th>
			  <th width="150">尺码</th>
			  <th width="150">库存</th>
			  <th width="200">货号</th>		  
			  <th width="220">操作</th>
			</tr>
			{{foreach from='$goods_listData' key='$k' value='$v'}}
			<tr>
				<td>{{$v['glid']}}</td>
				<td>{{$v['combine'][0]}}</td>
				<td>{{$v['combine'][1]}}</td>
				<td>{{$v['inventory']}}</td>
				<td>{{$v['number']}}</td>
				<td>
					<a href="{{U('edit',array('glid'=>$v['glid'],'gid'=>Q('get.gid',0,'intval')))}}" class="btn btn-sm btn-warning">编辑</a>
					<a href="{{U('del',array('glid'=>$v['glid'],'gid'=>Q('get.gid',0,'intval')))}}" onclick="javascript:if(confirm('确定要删除吗？')){return true;}return false;" class="btn btn-sm btn-danger">删除</a>
				</td>
			</tr>
			{{endforeach}}
			<tr>
				<td>添加货品</td>
				<td>
					<select name="color">
						<option value="0">请选择</option>
						{{foreach from="$allData" key="$k" value="$v"}}
							{{if value="$v['type_attr_taid']==$groupData[0]['type_attr_taid']" }}
						<option value="{{$v['gaid']}}">{{$v['ganame']}}</option>
							{{endif}}
						{{endforeach}}
					</select>
				</td>
				<td>
					<select name="size">
						<option value="0">请选择</option>
						{{foreach from="$allData" key="$k" value="$v"}}
							{{if value="$v['type_attr_taid']==$groupData[1]['type_attr_taid']" }}
						<option value="{{$v['gaid']}}">{{$v['ganame']}}</option>
							{{endif}}
						{{endforeach}}
					</select>
				</td>
				<td>
					<input type="text" name="inventory" id="" value="" />
				</td>
				<td>
					<input type="text" name="number" id="" value="" />
				</td>
				<td>
				</td>
			</tr>
		</table>
		<input type="hidden" name="goods_gid" id="" value="{{Q('get.gid',0,'intval')}}" />
		<input type="submit" id="" name="" value="保存添加"/>
		</form>
	</body>
</html>
